#ifndef GRAPHICSRECTITEM_H
#define GRAPHICSRECTITEM_H

#include <QGraphicsRectItem>

class GraphicsRectItem : public QGraphicsRectItem
{
public:
    GraphicsRectItem();

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
    QPointF _startPos;
    qreal _rotation;
};

#endif // GRAPHICSRECTITEM_H
